*{ You can use plain selenium command using the selenium tag }*

#{morphiaFixture delete:'all', load:'data.yml' /}
 
#{selenium 'Go to admin section'}
    clearSession()
 
    // Open the home page
    open('/')
    clickAndWait('link=Log in to write something')
    type('username', 'bob@gmail.com')
    type('password', 'secret')
    clickAndWait('signin')
    
    // Posts
    clickAndWait('link=Posts')
    clickAndWait('link=The MVC application')
    
    // Type wrong data
    // type('object_postedAt', '2009-66-08')
    
    // clickAndWait('css=input[name=_save]')
    // assertTextNotPresent('The Post has been saved')

    type('object_postedAt', '2009-09-08')
    clickAndWait('css=input[name=_save]')
    assertTextPresent('The Post has been saved')
    
#{/selenium}